package com.lovemanai.listener;

import java.io.IOException;

import javax.servlet.AsyncEvent;
import javax.servlet.AsyncListener;

public class MyAsyncListener implements AsyncListener{

	@Override
	public void onComplete(AsyncEvent arg0) throws IOException {
		// 异步调用结束
		// 不会输出，因为在调用该方法是异步处理已经开始
		System.out.println("异步调用结束.....");
	}

	@Override
	public void onError(AsyncEvent arg0) throws IOException {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onStartAsync(AsyncEvent arg0) throws IOException {
		// 异步调用开始
		System.out.println("异步调用开始.....");
	}

	@Override
	public void onTimeout(AsyncEvent arg0) throws IOException {
		// TODO Auto-generated method stub
		
	}

}
